package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.DaoSchoolTop;
import com.sc.nft.entity.vo.DaoSchoolTopHomeListVO;
import com.sc.nft.entity.vo.DaoSchoolTopPageAdminVO;
import com.sc.nft.sup.PageRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * dao学堂的一级分类(DaoSchoolTop)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-13 16:05:14
 */
public interface DaoSchoolTopMapper extends BaseMapper<DaoSchoolTop> {

    /**
     * 分页获取1级分类列表
     *
     * @param page
     * @return
     */
    Page<DaoSchoolTopPageAdminVO> pageAdmin(Page page);

    /**
     * 获取全部数据
     *
     * @return
     */
    List<DaoSchoolTopPageAdminVO> allAdmin();

    /**
     * 首页获取父集列表
     *
     * @return
     */
    Page<DaoSchoolTopHomeListVO> getHomeTopList( Page page, @Param("daoId") Long daoId);

}
